package org.djw.org.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.djw.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门对应的实体类
 */
@Data
public class Department extends BaseDomain{
    //部门编号
    private String sn;
    private String name;
    //上级部门Id路径
    @ApiModelProperty("上级部门id路径,可以不传")
    private String dirPath;
    private Long state;
    //部门管理员ID  Employee表
    private Long manager_id;
    private Employee manager;

    //上级部门
    private Long parent_id;
    private Department parent;

    //二级部门
    private List<Department> children = new ArrayList<>();

}
